<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: str.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('str_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">str.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;coap_config.h&quot;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &quot;<a class="el" href="libcoap_8h_source.html">libcoap.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="coap__debug_8h_source.html">coap_debug.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="mem_8h_source.html">mem.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="str_8h_source.html">str.h</a>&quot;</code><br />
</div>
<p><a href="str_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9862b1ade5e6e2eb01aabd0fa98b63e1" id="r_ga9862b1ade5e6e2eb01aabd0fa98b63e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcoap__string__t.html">coap_string_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__string.html#ga9862b1ade5e6e2eb01aabd0fa98b63e1">coap_new_string</a> (size_t size)</td></tr>
<tr class="memdesc:ga9862b1ade5e6e2eb01aabd0fa98b63e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new string object with at least size+1 bytes storage allocated.  <br /></td></tr>
<tr class="separator:ga9862b1ade5e6e2eb01aabd0fa98b63e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad991c87cfcf9b2414d2dc430c8701ed3" id="r_gad991c87cfcf9b2414d2dc430c8701ed3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__string.html#gad991c87cfcf9b2414d2dc430c8701ed3">coap_delete_string</a> (<a class="el" href="structcoap__string__t.html">coap_string_t</a> *s)</td></tr>
<tr class="memdesc:gad991c87cfcf9b2414d2dc430c8701ed3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes the given string and releases any memory allocated.  <br /></td></tr>
<tr class="separator:gad991c87cfcf9b2414d2dc430c8701ed3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaac769e3d5cea5481436c9eb3cb28d92a" id="r_gaac769e3d5cea5481436c9eb3cb28d92a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcoap__str__const__t.html">coap_str_const_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__string.html#gaac769e3d5cea5481436c9eb3cb28d92a">coap_new_str_const</a> (const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t size)</td></tr>
<tr class="memdesc:gaac769e3d5cea5481436c9eb3cb28d92a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new const string object with at least size+1 bytes storage allocated, and the provided data copied into the string object.  <br /></td></tr>
<tr class="separator:gaac769e3d5cea5481436c9eb3cb28d92a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4c283744d0fa51b553bf3fc52488e4b0" id="r_ga4c283744d0fa51b553bf3fc52488e4b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__string.html#ga4c283744d0fa51b553bf3fc52488e4b0">coap_delete_str_const</a> (<a class="el" href="structcoap__str__const__t.html">coap_str_const_t</a> *s)</td></tr>
<tr class="memdesc:ga4c283744d0fa51b553bf3fc52488e4b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes the given const string and releases any memory allocated.  <br /></td></tr>
<tr class="separator:ga4c283744d0fa51b553bf3fc52488e4b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="str_8c.html">str.c</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
